Skip to content

Fix installation testing workflow errors on PHP <= 7.3 with MySQL 8.4#11250

Closed
desrosj wants to merge 2 commits intoWordPress:trunkfrom
desrosj:fix/installation-workflow
Closed

Fix installation testing workflow errors on PHP <= 7.3 with MySQL 8.4#11250
desrosj wants to merge 2 commits intoWordPress:trunkfrom
desrosj:fix/installation-workflow

Conversation

@desrosj
Copy link
Copy Markdown
Member

@desrosj desrosj commented Mar 13, 2026

This addresses installation test failures on older branches caused by authentication plugin changes in MySQL:

  • In MySQL 8.0, the default authentication plugin was changed to caching_sha2_password, which did not exist on PHP <= 7.3. The previous behavior can be restored using --default-authentication-plugin=mysql_native_password.
  • In MySQL 8.4, the name of the authentication plugin flag changed to --authentication-policy.
  • In MySQL 9.0, mysql_native_password was removed entirely.

The last scenario is already guarded against through exclude statements. But the current conditional statement in the workflow:

  • Does not account for PHP 7.1 and lower.
  • Does not account for the difference in flag names between MySQL 8.4 and lower versions.

This adjusts the conditional statements to fully account for all scenarios.

A workaround for this was previously included in trunk, but has since been removed when PHP 7.3 was dropped earlier in the 7.0 release cycle. There is helpful history and details in r59277, which merged support for MySQL 8.4 in the local Docker environment. The custom .conf file in particular has good inline documentation.

Trac ticket: Core-64227.

Use of AI Tools

Claude was used to collect research and generate the first draft of this PR.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@desrosj desrosj self-assigned this Mar 13, 2026
@github-actions
Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props desrosj.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@desrosj desrosj marked this pull request as draft March 13, 2026 20:03
@desrosj desrosj marked this pull request as ready for review March 13, 2026 21:44
@desrosj
Copy link
Copy Markdown
Member Author

desrosj commented Mar 13, 2026

This is ready to go. Since you can't run a workflow_dispatch event from a PR branch, I've pushed the changes to my fork and done so. All looks good.

@desrosj
Copy link
Copy Markdown
Member Author

desrosj commented Mar 13, 2026

Merged in r62022.

@desrosj desrosj closed this Mar 13, 2026
@desrosj desrosj deleted the fix/installation-workflow branch March 13, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant